package org.zjblague.blog.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

/**
 *  <p><p>
 * 
 * @author 		<a href="mailto:zjblague@gmail.com">Jing Zhang</a>
 * @date 		2011-8-8
 * @version 	test
 *	
 */
@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class Reply {
	
	@PrimaryKey
	@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private Comment comment;
	
	@Persistent
	private String content;
	
	public Reply() {
		super();
	}

	public Reply(Comment comment, String content) {
		super();
		this.comment = comment;
		this.content = content;
	}

	/**
	 * @return the key
	 */
	public Key getKey() {
		return key;
	}

	/**
	 * @param key the key to set
	 */
	public void setKey(Key key) {
		this.key = key;
	}

	/**
	 * @return the comment
	 */
	public Comment getComment() {
		return comment;
	}

	/**
	 * @param comment the comment to set
	 */
	public void setComment(Comment comment) {
		this.comment = comment;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}
	
	
}



